home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / pcw415_3.zip / HPFIX.BAT < prev    next >
DOS Batch File  |  1993-07-12  |  1KB  |  41 lines

  1. ECHO OFF
  2. CLS                   
  3. IF [%1]==[] GOTO Usage
  4. IF [%1]==[?] GOTO Usage
  5. IF EXIST %1 GOTO Copy
  6. :Usage
  7. ECHO HPFIX fixes up print control files (PR.DEF) made with Font Selector 2.0
  8. ECHO to include the new graphic capabilities of PC-Write 4.1.
  9. ECHO  
  10. ECHO HPFIX old [new]
  11. ECHO  
  12. ECHO where:  old = name and extension of old print control file;
  13. ECHO         new = name and extension of new print control file,
  14. ECHO               can be the same as the old print control file,
  15. ECHO               defaults to HPNEW.DEF if not given.
  16. ECHO  
  17. ECHO Example: HPFIX PR.DEF NEWPR.DEF
  18. GOTO Exit
  19. :Copy
  20. SET HPNEW=HPNEW.DEF
  21. IF NOT [%2]==[] SET HPNEW=%2
  22. IF [%1]==[%HPNEW%] GOTO Fix
  23. ECHO HPFIX:  Copying %1 to %HPNEW% ...
  24. COPY %1 %HPNEW% >NUL
  25. :Fix
  26. ECHO HPFIX:  Fixing %HPNEW% ...
  27. ECHO $UP:LJet.prd >> %HPNEW%
  28. ECHO $UE=32,13 >> %HPNEW%
  29. ECHO $WP=27,38,108,1,72 (Paper main) >> %HPNEW%
  30. ECHO $WP=27,38,108,2,72 (Paper manual) >> %HPNEW%
  31. ECHO $WP=27,38,108,3,72 (Envelope manual) >> %HPNEW%
  32. ECHO $WP=27,38,108,4,72 (Paper alternate) >> %HPNEW%
  33. ECHO $WP=27,38,108,5,72 (Paper optional) >> %HPNEW%
  34. ECHO $WP=27,38,108,6,72 (Envelope optional) >> %HPNEW%
  35. ECHO HPFIX:  Fixed %HPNEW%.
  36. SET HPNEW=
  37. :Exit
  38. ECHO  
  39. ECHO  
  40.  
  41.